package cn.njxzc.Java2017;

import java.util.Scanner;



/**
 * * 
 *  @Program Name  : JavaProgram.Java2017.HomeWorkTest.java
 *  @Written by    : Roy Xu
 *  @Creation Date : Mar 22, 2017 9:43:01 AM 
 *  @version       : v1.00
 *  @Description   : homework test 
 *  @ModificationHistory  
 *  Who          When                What 
 *  --------     ----------          ------------------------------------------------ 
 *  Roy Xu    Mar 22, 20179:43:01 AM      TODO
 **
 */
public class HomeWorkTest {

	

//	private static Scanner sc;

	public static void main(String[] args) {
		int x,y,z;
		System.out.print("Input three number: ");
		Scanner scanner = new Scanner(System.in);  						//获取三边的数值
		x=scanner.nextInt();
		y=scanner.nextInt();
		z=scanner.nextInt();
		if((x+y>z || x+z>y || y+z>x) && (x!=0 && y!=0 && z!=0))
		{
			if((x==y&&y!=z) ||(x==z&&z!=y) ||(y==z&&z!=x)){
				System.out.println("This is an isosceles triangle ");   //等腰三角形
			}else if(x==y && y==z){
				System.out.println("This is Equilateral triangle");     //等边三角形
			}else
				System.out.println("arbitrary triangle");               //任意三角形
		}else
			System.out.println("This is not a triangle");				//不能构成三角形
		
	}
}
